﻿#pragma strict

public var text1 : GameObject;
public var text2 : GameObject;
public var text3 : GameObject;
public var text4 : GameObject;

function OnEnable()
{
	StartCoroutine("Enable");
}

function Enable ()
{
	yield WaitForSeconds(0.2f);
	text1.SetActive(true);
	yield WaitForSeconds(0.2f);
	text2.SetActive(true);
	yield WaitForSeconds(0.2f);
	text3.SetActive(true);
	yield WaitForSeconds(0.2f);
	text4.SetActive(true);
}

function OnDisable()
{
	text1.SetActive(false);
	text2.SetActive(false);
	text3.SetActive(false);
	text4.SetActive(false);	
}